package com.sisgh.jefdv1.cmd.command.no.impl;

import com.sisgh.jefdv1.cmd.command.no.NoArgsCommand;
import com.sisgh.jefdv1.core.exec.Executor;
import com.sisgh.jefdv1.exception.cmd.exec.ExecuteCommandException;

public class ExitCommand extends NoArgsCommand {
    private static final String CMD = "exit";

    @Override
    protected String getCmd() {
        return CMD;
    }

    @Override
    public Executor execute(Executor executor) throws ExecuteCommandException {
        // todo 执行退出指令
        System.out.println("退出");
    }
}
